<!-- TinyMCE -->
<script type="text/javascript" src="/pub/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	convert_urls : true,
	document_base_url : "/api/data/",
	relative_urls : false,
	remove_script_host : true,
});

function toggleEditor(id) {
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}
</script>

<!-- use: <a href="javascript:toggleEditor('content');">add/remove editor</a> -->

<!-- /TinyMCE -->
